/*
 * GWTServiceImpl.java
 *
 * Created on 2008�?�?�? 上午10:38
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.yournamehere.server;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONNumber;
import com.google.gwt.json.client.JSONString;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import org.yournamehere.client.GWTService;
import org.yournamehere.guice.Client;

/**
 *
 * @author odpsoft
 */
public class GWTServiceImpl extends RemoteServiceServlet implements
    GWTService {

    public String myMethod(String s) {
        // Do something interesting with 's' here on the server.
        Client client =new Client();
        client.finder();
       JSONArray array = new JSONArray();
       array.set(0, new JSONString("ofds") );
       array.set(1,new JSONNumber(1));
       
        return "Server says: " + s+";json:"+array.toString();
    }
}
